import { Component } from 'react';
import { HashRouter as Router, Route, Routes } from 'react-router-dom';
import Counter from './Counter';
import Home from './Home';
import NotFound from './NotFound';
import User from './User';

export default class RootRouters extends Component {
	render() {
		return (
			<Router>
                <Routes>
                    <Route path="/" element={<User />}>
                        <Route path="/" element={<Home />} />
						<Route path="*" element={<NotFound />} />
                    </Route>
                    <Route path="/home" element={<Home />} />
                    <Route path="/counter" element={<Counter />} />
				</Routes>
			</Router>
		);
	}
}
